package cn.tedu.controller;

import cn.tedu.pojo.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;


public class Test {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext spring = new ClassPathXmlApplicationContext("spring-config.xml");
        User u = (User) spring.getBean("user");
        u.get();
    }
}
